package com.triones.api.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.triones.api.entity.WordOrderDO;
import com.triones.api.entity.vo.CustomWordOrderVO;
import com.triones.api.entity.vo.WordOrderVO;
import org.apache.ibatis.annotations.Param;

/**
 * 工单 -mapper接口
 */
public interface WordOrderMapper extends BaseMapperPlus<WordOrderMapper, WordOrderDO, WordOrderVO> {

    /**
     * 查询工单列表（分页）
     * @param build
     * @param wrapper
     * @return
     */
    Page<CustomWordOrderVO> selectPageList(@Param("page") Page<Object> build, @Param(Constants.WRAPPER) QueryWrapper<Object> wrapper);

    /**
     * 工单详情
     * @param id
     * @return
     */
    CustomWordOrderVO selectDetailById(@Param("id") Long id);
}
